package com.dong.sso_login.service;

import com.dong.sso_common.beans.TokenInfo;
import com.dong.sso_common.model.UmsMember;

/**
 * 会员管理Service
 * Created by macro on 2018/8/3.
 */
public interface UmsMemberService {
    /**
     * 根据用户名获取会员
     */
    UmsMember getByUsername(String username);

    /**
     * 登录后获取token
     */
    TokenInfo login(String username, String password);

}
